/*
*  Copyright 2019-2020 Zheng Jie
*
*  Licensed under the Apache License, Version 2.0 (the "License");
*  you may not use this file except in compliance with the License.
*  You may obtain a copy of the License at
*
*  http://www.apache.org/licenses/LICENSE-2.0
*
*  Unless required by applicable law or agreed to in writing, software
*  distributed under the License is distributed on an "AS IS" BASIS,
*  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*  See the License for the specific language governing permissions and
*  limitations under the License.
*/
package me.zhengjie.business.domain;

import lombok.Data;
import cn.hutool.core.bean.BeanUtil;
import io.swagger.annotations.ApiModelProperty;
import cn.hutool.core.bean.copier.CopyOptions;
import me.zhengjie.base.BaseBusiness;
import org.hibernate.annotations.GenericGenerator;
import javax.persistence.*;
import javax.validation.constraints.*;
import java.sql.Timestamp;
import java.io.Serializable;

/**
* @website https://el-admin.vip
* @description /
* @author xiahongbo
* @date 2025-01-06
**/
@Entity
@Data
@Table(name="PRIC_PSN")
public class PricPsn extends BaseBusiness implements Serializable {

    @Id
    @GenericGenerator(name = "hibernate-uuid", strategy = "uuid")
    @GeneratedValue(generator = "hibernate-uuid")
    @Column(name = "PRIC_PSN_ID")
    @ApiModelProperty(value = "主键ID")
    private String pricPsnId;

    @Column(name = "USCC")
    @ApiModelProperty(value = "统一社会信用代码")
    private String uscc;

    @Column(name = "NURSCARE_PSN_NAME")
    @ApiModelProperty(value = "护理人员姓名")
    private String nurscarePsnName;

    @Column(name = "NURSCARE_PSN_CERT_TYPE")
    @ApiModelProperty(value = "护理人员证件类型")
    private String nurscarePsnCertType;

    @Column(name = "NURSCARE_PSN_CERTNO")
    @ApiModelProperty(value = "护理人员证件号码")
    private String nurscarePsnCertno;

    @Column(name = "NURSCARE_PSN_GEND")
    @ApiModelProperty(value = "护理人员性别")
    private String nurscarePsnGend;

    @Column(name = "NURSCARE_TEL")
    @ApiModelProperty(value = "护理人员电话")
    private String nurscareTel;

    @Column(name = "PSN_TYPE_LIST")
    @ApiModelProperty(value = "人员类别")
    private String psnTypeList;

    @Column(name = "BANK_MAJCLS")
    @ApiModelProperty(value = "银行大类")
    private String bankMajcls;

    @Column(name = "BANK_NAME")
    @ApiModelProperty(value = "开户行名称")
    private String bankName;

    @Column(name = "BANK_ID")
    @ApiModelProperty(value = "开户行ID")
    private String bankId;

    @Column(name = "BANKACCT")
    @ApiModelProperty(value = "银行账号")
    private String bankacct;

    @Column(name = "BANK_ACCTNAME")
    @ApiModelProperty(value = "银行户名")
    private String bankAcctname;

    @Column(name = "ADMDVS")
    @ApiModelProperty(value = "护理人员医保区划")
    private String admdvs;

    @Column(name = "PSN_NURSCARE_REGN_IDS")
    @ApiModelProperty(value = "人员照护区ID集合")
    private String psnNurscareRegnIds;

    @Column(name = "NURSCARE_ORG_NO")
    @ApiModelProperty(value = "护理机构编号")
    private String nurscareOrgNo;

    @Column(name = "NURSCARE_PSN_NO")
    @ApiModelProperty(value = "护理人员编号")
    private String nurscarePsnNo;

    @Column(name = "NURSCARE_PSN_ID")
    @ApiModelProperty(value = "护理人员ID")
    private String nurscarePsnId;



    public void copy(PricPsn source){
        BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true));
    }
}